package cc.magicjson;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(exclude = JmxAutoConfiguration.class)
@EnableScheduling
public class WebMainApplication implements CommandLineRunner {

	private static ConfigurableApplicationContext context;

	public static void main(String[] args) {
//		SpringApplication application =
//				new SpringApplicationBuilder(WebMainApplication.class).build();
//		WebMainApplication.class.getClassLoader().getResourceAsStream();
		context =
				SpringApplication.run(WebMainApplication.class, args);


	}

	@Override
	public void run(String... args) throws Exception {

	}
}
